# frozen_string_literal: true

class Tag < ApplicationRecord
  has_many :taggings
  has_many :projects, through: :taggings

  validates :name, presence: true
  validates :name, length: { minimum: 1 }
end
